<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
    <style>
    
    .red{
        color:red;
    }
    .font50{
        font:50px;
    }
    
    </style>


</head>
<body>
    <div id="app">
    <p :class="classobj">{{message}}</p>
    <p :class="classarr">{{message}}</p>
    <p :class="styleobj">{{message}}</p>
    </div>
<script>
var app = new Vue({
el:"#app",
data:{
    message :"豆妹",
    classobj:{
        "red":true,
        "font50":true
    },
    styleobj:{
        "pink":true,
        "font50":true
    },
    classarr:[
        "pink","text_underline"
    ]
}

})


</script>

</body>
</html>